﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DungeonGenerator
{
    public interface IDisplayStrategy<in T>
    {
        void Display(int x, int y, T[,] map);
    }

    public class ConsoleStrategy<T> : IDisplayStrategy<T>
    {
        public void Display(int x, int y, T[,] map)
        {

            for (int j = 0; j < y; j++)
            {
                for (int i = 0; i < x; i++)
                {
                    Console.Write(map[j, i]);
                }
                Console.WriteLine(":" + j);
            }

        }

    }
}
